﻿@model SklepISI.Web.Models.CartPreviewViewModel
@{
    ViewBag.Title = "CartPreview";
}
<div class="well">
    <table class="table table-striped">
        <thead>
            <tr>
                <th colspan="3">Twój koszyk:</th>
            </tr>
            <tr style="font-size: 11px;">
                <th>Nazwa</th>
                <th style="text-align: right;">Ilość sztuk</th>
            </tr>
        </thead>
        <tbody style="font-size: 11px;">
            @foreach (var product in Model.Order.Products)
            {
                <tr>
                    <td>@product.Product.Name</td>
                    <td style="text-align: right;">@product.Quantity</td>
                </tr>
            }
        </tbody>
        <tfoot style="font-size: 11px;">
            <tr>
                <td colspan="2" style="text-align: right; font-weight: bold;">Suma: @String.Format("{0:C}", Model.Amount)</td>
            </tr>
        </tfoot>
    </table>
    <p class="pagination-right">@Html.ActionLink("Wiecej..", "ApproveOrder", "Order", new { }, new { @class = "btn btn-primary btn-mini" })</p>

</div>
